﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GlobalMemberList.ascx.cs" Inherits="SocialFront.Web.usercontrols.Membership.GlobalMemberList" %>

<asp:ListView ID="lvMembers" runat="server" OnPagePropertiesChanging="lvMembers_PagePropertiesChanging">

    <LayoutTemplate>
        <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
    </LayoutTemplate>

    <ItemTemplate>
        <a href="<%# ((SocialFront.Entities.Member)Container.DataItem).MemberUrl %>">
          <img src="<%#((SocialFront.Entities.Member)Container.DataItem).Avatar.ImageUrl %>" />
        </a>
    
        <h3>
          <a href="<%# ((SocialFront.Entities.Member)Container.DataItem).MemberUrl %>">
            <%# ((SocialFront.Entities.Member)Container.DataItem).LoginName %>
          </a>
        </h3>
    </ItemTemplate>
    
    <EmptyDataTemplate>
        <p>No Members have joined yet.</p>
    </EmptyDataTemplate>

</asp:ListView>

<p>
<asp:DataPager runat="server" ID="ItemDataPager" PageSize="8" PagedControlID="lvMembers" QueryStringField="p">
    <Fields>
      <asp:NumericPagerField />
    </Fields>
</asp:DataPager>
</p>